package com.mysky.client.mvp.audioplayer.event;

import com.google.gwt.event.shared.EventHandler;
import com.google.gwt.event.shared.GwtEvent;
import com.mysky.client.mvp.audioplayer.event.MDSongReadyEvent.MDSongReadyEventHandler;

public class MDSongReadyEvent extends
		GwtEvent<MDSongReadyEventHandler> {

	public static final Type<MDSongReadyEventHandler> TYPE = new Type<MDSongReadyEventHandler>();

	public MDSongReadyEvent() {
		super();
	}

	public interface MDSongReadyEventHandler extends EventHandler {
		void handleEvent(MDSongReadyEvent event);
	}

	@Override
	public Type<MDSongReadyEventHandler> getAssociatedType() {
		return TYPE;
	}

	@Override
	protected void dispatch(MDSongReadyEventHandler handler) {
		handler.handleEvent(this);
	}
}